package work2;

import java.time.LocalDate;

public class Yuangong {
    private int id;
    private String name;
    private String zhiwei;
    private LocalDate birthday;//生日
    private  int gongzi;//工资

    public Yuangong() {
    }

    public Yuangong(String name, String zhiwei, LocalDate birthday, int gongzi) {
        this.name = name;
        this.zhiwei = zhiwei;
        this.birthday = birthday;
        this.gongzi = gongzi;
    }

    @Override
    public String toString() {
        return "Yuangong{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", zhiwei='" + zhiwei + '\'' +
                ", birthday=" + birthday +
                ", gongzi=" + gongzi +
                "}\n";
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getZhiwei() {
        return zhiwei;
    }

    public void setZhiwei(String zhiwei) {
        this.zhiwei = zhiwei;
    }

    public LocalDate getBirthday() {
        return birthday;
    }

    public void setBirthday(LocalDate birthday) {
        this.birthday = birthday;
    }

    public int getGongzi() {
        return gongzi;
    }

    public void setGongzi(int gongzi) {
        this.gongzi = gongzi;
    }
}
